﻿#Region "Using Directives"
Imports System
Imports System.Collections.Generic
Imports System.Text
#End Region

Namespace C4F.DevKit.Bluetooth
    Namespace ServiceAndDeviceDiscovery

        ''' <summary>
        ''' Represents the WSAPROTOCOLCHAIN structure.
        ''' </summary>
        <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices. _
                                                     LayoutKind.Sequential, _
                                                     CharSet:=System.Runtime. _
                                                     InteropServices.CharSet.Unicode)> _
        Public Class WsaProtocolChain
            ''' <summary>
            ''' Length of the chain, in bytes.
            ''' </summary>
            Public ChainLen As Integer

            ''' <summary>
            ''' Array of protocol chain entries.
            ''' </summary>
            <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices. _
                                                      UnmanagedType.ByValArray, _
                                                      SizeConst:=BluetoothHelper. _
                                                      MAX_PROTOCOL_CHAIN)> _
            Public ChainEntries() As Integer
        End Class
    End Namespace
End Namespace